package com.example.shiro.service.impl;

import com.example.shiro.dao.UserMapper;
import com.example.shiro.entity.User;
import com.example.shiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lijilong
 * @version 1.0
 * @Description:
 * @CreateDate 2018/8/7 16:53
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User findByUserName(String username) {
        return userMapper.findByUserName(username);
    }

    @Override
    public List<String> findRolesByUsername(String username) {
        return userMapper.findRolesByUsername(username);
    }
}
